</html>
<script type="text/javascript">
    // 检查有没登录
    if(checkLogin() == false) {
        if (window.location.href.indexOf('/login') == -1   ) {
            window.location.href = '{:U("StudentApi/index")}';
        }
    }
	//alert(document.cookie)
	/*
	if(isWeixin()){ 
		if( (getCookie('open_id')== null)  || (getCookie('wx_info')== null)){
		//alert('a')
			 window.location.href = '{:U("StudentApi/index")}';
		}
	}*/

    $(function() {

        if(isMobile()) {
        } else {
            // $("select").select2({
            //     dropdownCssClass: 'dropdown-inverse',
            // });
        }

        if (isWeixin()) {
            // alert('weixin');
        } else {
            // alert('no weixin')
        }


    });
</script>
